﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using Meqs.Entity;
using Meqs.Logic;
using Meqs.Logic.Interface;

public partial class Custom_SchoolGrade : System.Web.UI.UserControl
{
    protected List<ShowGrade> showGrades = new List<ShowGrade>();
    protected void Page_Load(object sender, EventArgs e)
    {
        if(!IsPostBack)
        {
            SchoolInfo si = SchoolCommon.Sch_SchoolInfo;
            List<int> grades = Common.GetGradeList(si.SchoolOpt);
            foreach(int g in grades)
            {
                ShowGrade sg = new ShowGrade();
                sg.index = g;
                sg.name = Common.ConvertGradeNum(g);
                showGrades.Add(sg);
            }
        }
    }
}
public class ShowGrade
{
    public int index = 0;
    public string name = "";
}